From 7a5c995fd4a5da18fafbdecee7cd151766e8b00b Mon Sep 17 00:00:00 2001 From: Daniel Boles Date: Wed, 18 Jan 2017 22:17:37 +0000 Subject: [PATCH] =?utf8?q?combobox:=20Don=E2=80=99t=20select=20active=20it?= =?utf8?q?em=20if=20it=E2=80=99s=20hidden?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit I hope no one ever actually brings such a silly item into this world, but this achieves symmetry with the similar checks immediately after. --- gtk/gtkcombobox.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/gtkcombobox.c b/gtk/gtkcombobox.c index 2b12ed080c..4b3c9f8703 100644 --- a/gtk/gtkcombobox.c +++ b/gtk/gtkcombobox.c @@ -1760,7 +1760,7 @@ gtk_combo_box_menu_popup (GtkComboBox *combo_box, GList *i; GtkWidget *child; - if (!active) + if (!(active && gtk_widget_get_visible (active))) { for (i = GTK_MENU_SHELL (priv->popup_widget)->priv->children; i && !active; i = i->next) { -- 2.30.2